<template>
	<view class="container">
		<!-- 顶部导航部分 -->
		<view class="top">
			<view class="bg"></view>
			
			<view class="title_header">
				<view class="jiantou" @click="back"></view>
				<text>商户资料</text>
			</view>
		
		
		<!-- 卡片内容 -->
		<view>
			<uni-card>
				<view class="register_register">
					<view class="register_left">
						<view>负责人:</view>
						<view>身份证号码:</view>
						<view>手机号:</view>
						<view>店名:</view>
						<view>工商营业执照号码:</view>
						<view>经营区域:</view>
						<view>地址:</view>
					</view>
					<view class="register_right">
						<!-- <view>{{Message.nameCharge}}</view> -->
						<view>张大美</view>
						<!-- <view>{{Message.cardid}}</view> -->
						<view>410901200107284030</view>
						<!-- <view>{{Message.phone}}</view> -->
						<view>15603938806</view>
						<!-- <view>{{Message.storeName}}</view> -->
						<view>大美汽修店</view>
						<!-- <view>{{Message.number}}</view> -->
						<view>41090120010000000</view>
						<!-- <view>{{Message.area}}</view> -->
						<view>焦作市山阳路</view>
						<!-- <view>{{Message.address}}</view> -->
						<view>山阳区迎宾路32号</view>
						
					</view>
				</view>
			</uni-card>
		</view>
	
	
	
		<!-- 商家简介 -->
		<view class="shop">
			<uni-card>
				<view class="shop_text">
					<view class="text">
						商家简介
					</view>
						<!-- <uni-easyinput type="textarea" v-model="Message.intro" ></uni-easyinput>	 -->
						<text>汽车修理厂是专门修理汽车和总成的单位，一般
						设置在汽车站内部，也有是单独企业。汽车修理
						的基本方法可分为就车修理和总成互换修理。</text>
				</view>
			</uni-card>
		</view>
		
		
		<!-- 身份证正反照片 -->
		<view class="id">
			<uni-card>
				<view class="title">身份证正反面照片</view>
				<view class="picture">
					<view class="bg1">
						<!-- <image :src="Message.cardFront"></image> -->
						<image src="../../static/c1.png"></image>
					</view>
					<view class="bg1">
						<!-- <image :src="Message.cardBack"></image> -->
						<image src="../../static/c2.png"></image>
					</view>
					
				</view>
			</uni-card>
		</view>
		
		
		<!-- 营业执照照片 -->
		<view class="licensenumber">
			<uni-card>
				<view class="title">营业执照</view>
				<view class="picture">
					<view class="bg2">
						<!-- <image :src="Message.licence"></image> -->
						<image src="../../static/c3.png"></image>
					</view>
					
				</view>
			</uni-card>
		</view>

		<!-- 门店照片 -->
		<view class="storepicture">
			<uni-card>
				<view class="title">门店照片</view>
				<view class="picture">
					<view class="bg2">
						<!-- <image :src="Message.shopImage"></image> -->
						<image src="../../static/c4.png"></image>
					</view>
				</view>
			</uni-card>
		</view>
		
		<!-- 保存按钮 -->
	
		<view class="save" @click="edit">
			修改
		</view>
		
		
</view>
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
				//商户资料数据定义
				Message:{}
			}
		},
		onLoad() {
			this.MerchantInformation();
		},
		methods: {
			//商户资料页面数据展示接口
			MerchantInformation(){
				uni.request({
					url:" http://localhost:8080/seller/merchant/Message",
					data:{
						"id":10,
					},
					method:'post',
					header: {
					    'Authorization':'Bearer '+getApp().globalData.userInfo.token
					},
					success: (res) => {
						console.log("商户资料页面数据:",res);
						this.Message = res.data.rows[0]
					}
				})
			},
			
			
			
			back(){
				uni.navigateBack({
					delta:1,
				})
			},
			edit(){
				uni.navigateTo({
					url:"/pages/register/register"
				})
			}
		}
	}
</script>

<style>
	/* 导航栏样式 */
	.container{
		width: 750rpx;
		position: relative;
		padding-bottom: 30rpx;
		background-color: #3785f6;
	}
	.top{
		width: 750rpx;
		height: 300rpx;
		background-color: #3785f6;
		
	}
	.bg{
		position: absolute;
		z-index: -1;
		background-color: #3785f6;
		width: 750rpx;
		height: 450rpx;
	}
	.title_header{
		display: flex;
		padding-top: 60rpx;
	}
	.title_header>text{
		font-size: 35rpx;
		color: white;
		margin-left: 270rpx;
	}
	.jiantou{
		border-bottom: 6rpx solid white;
		border-left: 6rpx solid white;
		width: 20rpx;
		height: 20rpx;
		margin-left: 20rpx;
		transform: rotate(45deg);
	}
	
	

	/* 身份信息卡片 */
	.register {
		/* position: absolute; */
		/* top: 90rpx; */
		width: 750rpx;
	}

	.register_register {
		display: flex;
	}

	.register_left view {
		width: 260rpx;
		margin: 55rpx 0;
		font-size: 30rpx;
		font-weight: bold;
		color: black;
	}
	.register_right view {
		width: 290rpx;
		margin: 55rpx 0;
		text-align: right;
		margin-left: 80rpx;
		font-size: 30rpx;
		color: black;
	}
	
	

	/* 商家简介 */
	.shop {
		width: 750rpx;
		/* position: absolute;
		top: 1060rpx; */
	}

	.text {
		font-size: 30rpx;
		font-weight: bold;
		color: black;
		margin-bottom: 20rpx;
	}
	
	
	
	
	/* 身份证正反照片 */
		
	.title {
		font-size: 30rpx;
		font-weight: bold;
		color: black;
		padding-bottom: 15rpx;
	}	
	.picture{
		display: flex;
	}
	.bg1{
		width: 181rpx;
		height: 152rpx;
		background-color: #eff3f7;
		display: flex;
		align-items: center;
		margin-right: 17rpx;
	}
	.bg1 image{
		width: 181rpx;
		height: 106rpx;
	}
	
	
	/* 营业执照 */
	.bg2 image{
		width: 183rpx;
		height: 142rpx;
	}
			
		
	/* 保存按钮样式 */
	.save{
		line-height: 79rpx;
		width: 517rpx;
		height: 74rpx;
		border: 1rpx solid  white;
		border-radius: 30rpx;
		text-align: center;
		margin-left: 120rpx;
		margin-top: 65rpx;
		color: white;
		background-color: #1b6fea;
	} 


</style>
